package com.cavy.platform.server.mapper;

import com.cavy.platform.server.domain.Agent;
import com.cavy.platform.server.domain.job.JobAgent;
import com.cavy.platform.server.dto.AgentRegisterDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * agent到其他类的转换器
 */
@Mapper
public interface AgentMapper {

    AgentMapper INSTANCE = Mappers.getMapper(AgentMapper.class);

    Agent convertToAgent(AgentRegisterDto dto);

    JobAgent toJobAgent(Agent info);
}
